<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="/lottery/js/question-src.js"></script>
<link href="/lottery/css/lottery.css" type="text/css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>活动页面</title>
<link rel="stylesheet" type="text/css" href="/lottery/css/lottery.css">
<script type="text/javascript" src="/lottery/js/question-src.js"> </script>
</head>
<body>
<div class="my" style="margin:0px;">
<div class="my1">活动期间，每天都有机会参加答题抽奖！</div>
<div class="my2 font3">

<c:if test="${usedCount != null}">
	<span class="font4 mzy10">第 <c:out value="${usedCount+1}"/>关</span>
	(你今日已回答 
	<c:out value="${usedCount}"/> 题，还可以回答
	 <c:out value="${avaliableCount}"/> 题）
</c:if>

 </div>
<div class="my3">
<div class="font11">
		<c:choose>
			<c:when test="${flag == 'lotteryNull'}">
				没有正在进行的抽奖活动!
			</c:when>
			<c:when test="${flag == 'quotaZero'}">
				您已经回答了今天的所有问题!
			</c:when>
			<c:when test="${flag == 'questionNull'}">
				对应的抽奖问题为空!
			</c:when>
			<c:when test="${flag == 'reAnswer'}">
			</c:when>
			<c:otherwise>
				系统异常
			</c:otherwise>   
		</c:choose>         
</div>
<c:choose>
	<c:when test="${(flag == 'reAnswer') && (avaliableCount!='0')}">
		<div class="bt"><a href="#" onclick="initQuestion();"><img src="/lottery/images/bt3.jpg" alt="" border="0" height="54" width="141"/></a></div>
	</c:when>
	<c:otherwise>
		<div class="bt"><a href="<c:url value="/index.do"/>" target="_parent"><img src="/lottery/images/bt2.jpg" alt="" border="0" height="54" width="141"/></a></div>
	</c:otherwise>
</c:choose>

</div>
<form action="" id="initQuestionForm"  name="initQuestionForm" method="post">
	<input type="hidden" name="phaseId" id="phaseId" value="<c:out value="${phaseId}"/>"/>
</form>
</div>

</body>
</html>